package com.igeek.service;

import com.igeek.domain.Product;
import com.igeek.domain.Review;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author spike
 * @since 2022-01-12
 */
public interface ReviewService extends IService<Review> {
    /*设置累计评价和所有评价*/
    void setReviewsAndCount(Product product);
    /*设置评价对应的用户*/
    void setReviewUser(Product product);

    void saveAndUpdateStatus(Review review, Integer oid);
}
